/**
 * Created by yangjiao on 2017/9/17.
 */
import send from '../http'
export default {

  /**
   *查询公告设置
   * @param data {}
   */
  queryNoticeList (data) {
    let req = {
      data: data,
      action: 'config.notice.queryNoticeList'
    }
    return send.fetch(req, 'post')
  },
  /**
   *创建公告设置
   * @param data {}
   */
  createNotice (data) {
    let req = {
      data: data,
      action: 'config.notice.createNotice'
    }
    return send.fetch(req, 'post')
  },
  /**
   *更新公告设置
   * @param data {}
   */
  updateNotice (data) {
    let req = {
      data: data,
      action: 'config.notice.updateNotice'
    }
    return send.fetch(req, 'post')
  },
  deleteNoticeAttach (data) {
    let req = {
      data: data,
      action: 'config.notice.deleteNoticeAttach'
    }
    return send.fetch(req, 'post')
  },
  /**
   *通过id查询公告设置
   * @param data {}
   */
  getNoticeById (data) {
    let req = {
      data: data,
      action: 'config.notice.getNoticeById'
    }
    return send.fetch(req, 'post')
  },
  /**
   *通过id查询已阅公告的座席
   * @param data {}
   */
  getReadSeatsById (data) {
    let req = {
      data: data,
      action: 'config.notice.queryNoticeReaders'
    }
    return send.fetch(req, 'post')
  },
  /**
   *删除公告设置
   * @param data {}
   */
  deleteNotice (data) {
    let req = {
      data: data,
      action: 'config.notice.deleteNotice'
    }
    return send.fetch(req, 'post')
  },
  /**
   *查询日志管理
   * @param data {}
   */
  queryBusOrCustLogList (data) {
    let req = {
      data: data,
      action: 'app.operateLog.queryLogList'
    }
    return send.fetch(req, 'post')
  },
  /**
   *恢复日志数据
   * @param data {}
   */
  logDataRecovery (data) {
    let req = {
      data: data,
      action: 'app.operateLog.dataRecovery'
    }
    return send.fetch(req, 'post')
  },
  /**
   *删除日志管理
   * @param data {}
   */
  deleteBusOrCustLogList (data) {
    let req = {
      data: data,
      action: 'app.operateLog.deleteOperateLog'
    }
    return send.fetch(req, 'post')
  }
}
